<?php

require_once("Inland.class.php"); //arg: Color, name, defending_unit($object = null)
require_once("Army.class.php"); //arg: nation, color, unitId
if(isset($_POST['armynamearray'])){
	$armynamearray = $_POST['armynamearray'];
	$armycolorarray = $_POST['armycolorarray'];
	$armynationarray = $_POST['armynationarray'];

	$provnamearray = $_POST['provnamearray'];
	$provcolorarray = $_POST['provcolorarray'];

	$armyname = array();
	$provname = array();

	echo "<h2>Armies:</h2>";
	for($i=0;$i<count($armynamearray);$i++){
		$armyname[$i] = new Army($armynationarray[$i], $armycolorarray[$i], $armynamearray[$i]);
	}

	echo "<h2>Provinces</h2>";
	for($i=0;$i<count($provnamearray);$i++){
		$provname[$i] = new Inland($provcolorarray[$i], $provnamearray[$i]);
	}
}

echo 'TO WAR:<a href=war.php>NO TIME TO WASTE</a>';

?>